<template>
	<view class="detail_box">
		<u-navbar :auto-back="true" :placeholder="true" title="赚钱攻略"></u-navbar>
		<view v-if="detail">
			<view class="detail_content">
				<u-parse :content="detail.strategy"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		distIndex,
	} from '@/common/http.api.js';
	let that;
	export default {
		data() {
			return {
				id: "",
				detail: null
			}
		},
		onLoad(options) {
			that = this
			that.getDetail()
		},
		methods: {
			// 获取详情
			getDetail(){
				let that = this
				distIndex().then(res => {
					that.detail = res.data;
				}).catch(err => {
					uni.$u.toast(err.msg);
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.detail_box{
		padding: 30rpx;
		.detail_title{
			font-size: 40rpx;
			color: #1E272E;
			font-weight: bold;
			line-height: 58rpx;
			margin-bottom: 20rpx;
		}
		.detail_b{
			height: 60rpx;
			font-size: 28rpx;
			color: #999999;
			.detail_see{
				color: #808E9B;
				margin-right: 50rpx;
				text{
					color: #1E272E;
					font-weight: 500;
					margin-right: 8rpx;
				}
			}
			.detail_time{
				color: #999999;
			}
		}
		.detail_content{
			padding: 30rpx 0 0;
			font-size: 28rpx;
			line-height: 40rpx;
			color: #333333;
		}
	}
</style>
